class Main extends egret.DisplayObjectContainer{
    public constructor(){
        super();
        this.addEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this)
    }
    private onAddToStage(event:egret.Event){
        var shapedemo = new Shapedemo();
        this.addChild(shapedemo)
        var textdemo = new Textdemo();
        this.addChild(textdemo)
        console.log('success')
    }
}